﻿using System;
using XsqTech.SmartOA.Domain.Table;
using XsqTech.SmartOA.Dtos.DTO;
using XsqTech.SmartOA.IRespository.Base;

namespace XsqTech.SmartOA.IRespository
{
    public interface IUserRespository:IBaseRespository<User>
    {
        dynamic UserLogin(string name, string password);

    }
    public interface IRolesRespository : IBaseRespository<Roles>
    {
        int AddRolePermission(string rid, string pid);
        List<RolePermission> GetRolePermissions(string rid);
    }
    public interface IRolePermissionRespository : IBaseRespository<RolePermission>
    {
    }
    public interface IUserRoleRespository : IBaseRespository<UserRole>
    {
    }
}
